Fix which-key--next-page-hint
authorJustin Burkett <justin@burkett.cc>
Tue, 8 Sep 2020 22:59:30 +0000 (18:59 -0400)
committerJustin Burkett <justin@burkett.cc>
Tue, 8 Sep 2020 22:59:30 +0000 (18:59 -0400)
prefix-keys might be a vector.

Fixes #265

which-key.el

index a25337f3d9a63ca32fec28747b3969cee8ffb181..1dbdd08400bc21cd1cde261a90c872765b0d62ac 100644 (file)
@@ -2126,8 +2126,9 @@ max-lines max-width avl-lines avl-width (which-key--pages-height result))
                   (concat key " or " which-key-paging-key)
                 key)))
     (when (and which-key-use-C-h-commands
-               (not (string-equal (char-to-string help-char)
-                                  (kbd prefix-keys))))
+               (or (not (stringp (kbd prefix-keys)))
+                   (not (string-equal (char-to-string help-char)
+                                      (kbd prefix-keys)))))
       (which-key--propertize (format "[%s paging/help]" key)
                              'face 'which-key-note-face))))